package cn.csg.iotplatform.module.system.controller.admin.project.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.csg.iotplatform.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Data
public class ProjectImportReqVO {

    @Schema(description = "项目编号")
    @ExcelProperty("项目编码")
    private String projectNo;

    @Schema(description = "项目名称", example = "芋艿")
    @ExcelProperty("项目名称")
    private String projectName;

    @Schema(description = "建设单位编号")
    @ExcelProperty("项目单位")
    private String unitCode;

    @Schema(description = "建设单位名称", example = "赵六")
    private String unitName;

    @Schema(description = "建设负责人")
    @ExcelProperty("负责人")
    private String unitUser;

    @Schema(description = "建设负责人电话")
    private String unitTel;

    @Schema(description = "承建单位名称", example = "李四")
    @ExcelProperty("承建单位")
    private String constructionName;

    @Schema(description = "承建单位负责人")
    @ExcelProperty("承建单位项目负责人")
    private String constructionUser;

    @Schema(description = "承建单位负责人电话")
    @ExcelProperty("承建单位项目负责人联系方式")
    private String constructionTel;

    @Schema(description = "数据来源")
    private Integer dataSource;

    @Schema(description = "启用", example = "1")
    private Integer enablingStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "网关设备数量")
    @ExcelProperty("允许接入网关设备数")
    private Integer gatewayDeviceNum;

    @Schema(description = "子终端数量")
    @ExcelProperty("允许接入子设备数")
    private Integer subDeviceNum;

    @Schema(description = "普通设备数量")
    @ExcelProperty("允许接入普通设备数")
    private Integer commonDeviceNum;

    @Schema(description = "描述", example = "你猜")
    @ExcelProperty("业务描述")
    private String description;
}
